package com.dhcc.bpm.modules.sandbox.mapper;

import com.dhcc.bpm.modules.sandbox.entity.SandboxApi;
import com.dhcc.bpm.modules.sandbox.vo.SandboxApiVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * @ClassName SandboxApiMapper
 * @Description 沙箱实例表 Mapper 接口
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public interface SandboxApiMapper extends BaseMapper<SandboxApi> {

	/**
	 * @Description 自定义分页
	 * @Author sjm
	 * @Date 9:55 2020/2/22 0022
	 * @param page
	 * @param sandboxApi
	 * @return java.util.List<com.dhcc.bpm.modules.sandbox.vo.SandboxApiVO>
	 **/
	List<SandboxApiVO> selectSandboxApiPage(IPage page, SandboxApiVO sandboxApi);

	/**
	 * 查询沙箱实例集合
	 * @Author sjm
	 * @Date 17:57 2020/2/21 0021
	 * @param caseId
	 * @param apiId
	 * @return com.dhcc.bpm.modules.sandbox.vo.SandboxApiVO
	 **/
	SandboxApiVO selectSandboxApiList(Long caseId, Long apiId);

	int deleteByCaseId(@Param("caseId") Long caseId);
}
